<template>
  <div class='container'>
    <div class='app-row m-20-t'>
      <span class="title bold width-100 align-right">问题内容:</span>
      <el-input class='flex-1' v-model="content_value"></el-input>
    </div>
    <div class="app-row j-c-c m-100-t">
      <el-button type="success" @click="add_button">添加问题</el-button>
    </div>
  </div>
</template>

<script>
  import question_request from "@/api/question_request"
  export default {
    name: 'question_add',
    data() {
      return {
        content_value: "",
        rank_value: 0,
      }
    },
    created() {
  
    },
    mounted() {
  
    },
    methods: {
      add_button() {
        let params = {
          content: this.content_value,
        }
        question_request.add_question(params, res=> {
          this.$router.push('/QA/question')
        })
      },


    }
  }
</script>

<style scoped>
@import "~@/styles/layout.scss";
</style>